<?php
$options = Helper::options();
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
$books = $db->fetchAll(
    $db->select()->from($prefix . 'booksline')->order($prefix . 'booksline.id', Typecho_Db::SORT_DESC)
);

?>
        <div class="jazz-timeline-wrapper">
            <div class="jazz-timeline multiline-timeline thin-timeline">
            <?php foreach ($books as $book) : ?>
                <div class="timeline-post turqoise-post turqoise-trail">
                    <div class="timeline-meta">
                    	<div class="meta-details"><?php echo $book['read_time'] ?></div>
                    </div> 
                    <div class="timeline-icon icon-dot-full-white">
                        <div class="timeline-bar"></div>
                    </div>
                    <div class="timeline-content">
                        <h2 class="content-title"><?php echo $book['book_name'] ?>&nbsp;&nbsp;<sub><?php echo $book['book_author'] ?></sub></h2>
                        <div class="content-details">
                            <p><?php echo $book['book_description']; ?></p>
                        </div>
                    </div><!-- timeline content -->
                </div><!-- .timeline-post --> 
        <?php endforeach; ?>
                
                                                         
            </div><!-- .timeline -->
        </div><!-- .jazz-timeline-wrapper -->    
    </body>
</html>
